package com.accp.jboa.biz;

import com.accp.jboa.dao.EmployeeMapper;
import com.accp.jboa.pojo.Employee;
import com.accp.jboa.vo.Leaves;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Employeebiz {

    @Autowired(required = false)
    private EmployeeMapper dao;

    public Employee queryBynameAndpwd(Employee employee){
        return dao.selectBynameAndpwd(employee);
    }

    public Employee selectByid(Integer id) {
        return dao.selectByid(id);
    }


    public Employee Byid(Integer id) {
        return dao.Byid(id);
    }
}
